package demo.controller;

import demo.feign.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date: 2023/2/25 15:11
 */
@RestController
@RequestMapping("/openfeign2")
public class TestController {
    @Autowired
    private OrderService orderService;

    @GetMapping("/shopping")
    public void shopping() {
        boolean b = orderService.deduct(12);
        System.out.println(b);
    }
}
